function delArc(aid) {
    var qstr = getCheckboxItem();
    if (qstr == "")
    {
        alert("你没有选中任何要删除的记录！");
        return
    }
    if (!confirm("你确定要删除数据:" + qstr + "吗？")) return;
  
    document.getElementById("qstr").value = qstr;
    document.listForm.action = "deleteAll";
    document.listForm.submit();

}
function audit(aid) {
    var qstr = getCheckboxItem();
    if (qstr == "")
    {
        alert("你没有选中任何要审核的记录！");
        return
    }
    if (!confirm("你确定要审核:" + qstr + "吗？")) return;
    document.getElementById("qstr").value = qstr;
    document.listForm.action = "audit";
    document.listForm.submit();
}
//获得选中的值
function getCheckboxItem()
{
    var allSel = "";
    if (document.listForm.listId.value) return document.listForm.listId.value;
    for (i = 0; i < document.listForm.listId.length; i++)
    {
        if (document.listForm.listId[i].checked)
        {
            if (allSel == "")
                allSel = document.listForm.listId[i].value;
            else
                allSel = allSel + "," + document.listForm.listId[i].value;
        }
    }
    return allSel;
}


function selAll()
{
   
    for (i = 0; i <document.listForm.listId.length; i++)
    {
        if (!document.listForm.listId[i].checked)
        {
            document.listForm.listId[i].checked = true;
        }
    }
}
function noSelAll()
{
    for (i = 0; i < document.listForm.listId.length; i++)
    {
        if (document.listForm.listId[i].checked)
        {
            document.listForm.listId[i].checked = false;
        }
    }
}